package cn.usain.controller;

import cn.usain.entity.Products;
import cn.usain.service.ProductCollectionService;
import com.jiyun.common.pojo.home.Special;
import com.jiyun.common.pojo.product.ProductCollection;
import com.jiyun.common.vo.R;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/api/collection")
public class ProductCollectionController {
    @Resource
    private ProductCollectionService productCollectionService;

    @GetMapping("/findCollectList/{userId}")
    public R<List<ProductCollection>> findCollectList(@RequestParam("userId") Integer userId) {
        return productCollectionService.findCollectList(userId);
    }

}
